# 计算向量叉乘，计分板为 mt_math_cp
# 输入变量为 x1, y1, z1, x2, y2, z2
# 输出在 xo, yo, zo

scoreboard players operation t1 mt_math_cp = y1 mt_math_cp
scoreboard players operation t1 mt_math_cp *= z2 mt_math_cp
scoreboard players operation t2 mt_math_cp = z1 mt_math_cp
scoreboard players operation t2 mt_math_cp *= y2 mt_math_cp
scoreboard players operation xo mt_math_cp = t1 mt_math_cp
scoreboard players operation xo mt_math_cp -= t2 mt_math_cp

scoreboard players operation t1 mt_math_cp = z1 mt_math_cp
scoreboard players operation t1 mt_math_cp *= x2 mt_math_cp
scoreboard players operation t2 mt_math_cp = x1 mt_math_cp
scoreboard players operation t2 mt_math_cp *= z2 mt_math_cp
scoreboard players operation yo mt_math_cp = t1 mt_math_cp
scoreboard players operation yo mt_math_cp -= t2 mt_math_cp

scoreboard players operation t1 mt_math_cp = x1 mt_math_cp
scoreboard players operation t1 mt_math_cp *= y2 mt_math_cp
scoreboard players operation t2 mt_math_cp = y1 mt_math_cp
scoreboard players operation t2 mt_math_cp *= x2 mt_math_cp
scoreboard players operation zo mt_math_cp = t1 mt_math_cp
scoreboard players operation zo mt_math_cp -= t2 mt_math_cp